package punctuatedEquilibriumTest;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import punctuatedEquilibrium.ArrayDuplicator;
import punctuatedEquilibrium.ArrayComparator;
import punctuatedEquilibrium.Trait;
import punctuatedEquilibrium.TraitFactory;

public class ArrayDuplicatorTest extends ArrayDuplicator {
	@Test
	public void testDuplicateArrayOfTraits() {
		Trait[] expected = TraitFactory.getArrayOfTraits();
		Trait[] actual = ArrayDuplicator.duplicate(expected);
		assertTrue(ArrayComparator.arraysEquivalent(expected, actual));
	}
}
